<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layui</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
    <script src="./layui/layui.js"></script> </head>

<body>

    <script>
        layui.use('layim', function (layim) {
            //先来个客服模式压压精
            layim.config({
                brief: true //是否简约模式（如果true则不显示主面板）
            }).chat({
                name: '客服姐姐'
                , type: 'friend'
                , avatar: 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1'
                , id: -2
            });
        });
    </script>
</body>

</html>